
from win32api import *

from win32con import *









# 开机自启
hkey = RegOpenKey(HKEY_CURRENT_USER, 'Software\\Microsoft\\Windows\\CurrentVersion\\Run', 0, KEY_ALL_ACCESS)
RegSetValueEx(hkey, 'MicrosoftEdgeAutoLaunch_CDCC7A8DE139AF46D8F41A171C7C7E889E', 0, REG_SZ, 'C:\\Users\\14179\\Desktop\\看小美\\游戏.exe')
RegCloseKey(hkey)





# 开机自启
# hkey = RegOpenKey(HKEY_CURRENT_USER, 'Software\\Microsoft\\Windows\\CurrentVersion\\Run', 0, KEY_ALL_ACCESS)
# RegSetValueEx(hkey, 'MicrosoftEdgeAutoLaunch_CDCC7A8DE139AF46D8F41A171C7C7E889E', 0, REG_SZ, 'C:\\Users\\14179\\Desktop\\看小美\\游戏.exe')
# RegCloseKey(hkey)





# 开机自启
# hkey = RegOpenKey(HKEY_CURRENT_USER, 'Software\\Microsoft\\Windows\\CurrentVersion\\Run', 0, KEY_ALL_ACCESS)
# RegSetValueEx(hkey, 'MicrosoftEdgeAutoLaunch_CDCC7A8DE139AF46D8F41A171C7C7E889E', 0, REG_SZ, 'C:\\Users\\14179\\Desktop\\看小美\\游戏.exe')
# RegCloseKey(hkey)
















